//
//  WebShowViewController.m
//  GameBaby
//
//  Created by keyZhang on 14-2-10.
//  Copyright (c) 2014年 keyZhang. All rights reserved.
//

#import "WebShowViewController.h"

@interface WebShowViewController ()
{
    UILabel *t;
}

@end

@implementation WebShowViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
        t = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 30)];
        t.font = [UIFont systemFontOfSize:16];
        t.textColor = [UIColor blackColor];
        t.backgroundColor = [UIColor clearColor];
        t.textAlignment = UITextAlignmentCenter;
        self.navigationItem.titleView = t;
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    NSURL *url = [NSURL URLWithString:self.linkURL];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [_wbView loadRequest:request];

}

- (void)setContentTitle:(NSString *)contentTitle
{
    t.text = contentTitle;
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
